package com.fzs.cloud.product.rest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.fzs.cloud.product.feign.OrderClientFeign;

@RestController
public class HiController {
    @Autowired
    OrderClientFeign orderClientFeign;

    @GetMapping("/hi")
    public String sayHi(@RequestParam( defaultValue = "forezp",required = false)String name){
        return orderClientFeign.sayHiFromClientEureka(name);
    }
 }
